package com.ly.designpatten.proxy.staticproxy;

/**
 * @Classname Agent
 * @Description TODO
 * @Date 2020/10/15 21:10
 * @Author 冷心影翼
 */
public class Agent implements IBoss {

	private IBoss boss;

	public Agent(IBoss boss) {
		this.boss = boss;
	}

	@Override
	public void publish() {
		System.out.println("boss：");
		boss.publish();
	}

	public static void main(String[] args) {
		Agent agent = new Agent(new Boss());
		agent.publish();
	}
}
